#ifndef DBC3640E_61C1_4738_B576_92A72E3CFEF1
#define DBC3640E_61C1_4738_B576_92A72E3CFEF1


#define IIC_FAIL 1
#define IIC_OK 0

enum
{
    iic_slave_none,
    iic_slave_rec,
    iic_slave_send,
};

void iic_slave_init(void);
void iic_slave_disable(void);
void iic_set_param(unsigned char addr);
char iic_rec(unsigned char* data,unsigned char len,unsigned short timeout);
char iic_send(unsigned char* data,unsigned char len,unsigned short timeout);
void iic_tx_cplt(void);
void iic_rx_cplt(void);
void iic_comm_stop(unsigned char state);
void iic_comm_timeout(unsigned char state);
#endif /* DBC3640E_61C1_4738_B576_92A72E3CFEF1 */
